home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / pc / UNIX.ZIP / VMSCRACK / SYSUAF.H < prev    next >
Encoding:
C/C++ Source or Header  |  1996-11-14  |  7.5 KB  |  117 lines

  1. #include "mytypes.h"
  2.  
  3. typedef struct {
  4.  
  5.   int CTRL_Y        :1;  /* Bit 0 - User can not use CTRL-Y                 */
  6.   int default_com   :1;  /* Bit 1 - User is restricted to default command   */
  7.   int set_pass      :1;  /* Bit 2 - SET PASSWORD command is disabled        */
  8.   int prevent_login :1;  /* Bit 3 - Prevent user from changing any login    */
  9.   int user_account  :1;  /* Bit 4 - User account is disabled                */
  10.   int welcome       :1;  /* Bit 5 - User will not receive the login message */
  11.   int new_mail      :1;  /* Bit 6 - Announcement of new mail is suppressed  */
  12.   int mail_delivery :1;  /* Bit 7 - Mail delivery to user is disabled       */
  13.  
  14. } L_Flags_0;
  15.  
  16. typedef struct {
  17.  
  18.   int gen_passed    :1;   /* Bit 0 - User is required to use generated passwd */
  19.   int primary_pass  :1;   /* Bit 1 - Primary password is expired              */
  20.   int secondary_pass:1;   /* Bit 2 - Secondary password is expired            */
  21.   int act_audited   :1;   /* Bit 3 - All actions are audited                  */
  22.   int last_login    :1;   /* Bit 4 - User will not receive last login messages*/
  23.   int existing_proc :1;   /* Bit 5 - User can not reconnect to existing proces*/
  24.   int user_login    :1;   /* Bit 6 - User can only login to terminals defined */
  25.   int change_pass   :1;   /* Bit 7 - User is required to change expired passwd*/
  26.  
  27. } L_Flags_1;
  28.  
  29. typedef struct {
  30.  
  31.   int captive_acc   :1;   /* Bit 0 - User is restricted to captive account  */
  32.   int user_execut   :1;   /* Bit 1 - Prevent user from executing RUN at DCL */
  33.   int future_use    :6;   /* Bits 2-7 Reserved for future use               */
  34.  
  35. } L_Flags_2;
  36.  
  37. typedef struct {
  38.  
  39.   dword Record_Header;              /* Record Header                        */
  40.   char  Username[32];               /* Username (loginid)                   */
  41.   word  Member_UIC;                 /* Mem UIC decimal   1 = 0100           */
  42.                                     /* Mem UIC decimal  10 = 0A00           */
  43.                                     /* Mem UIC decimal 256 = FF01           */
  44.   word  Group_UIC;                  /* Group UIC                            */
  45.   byte  Nulls[12];                  /* Nulls                                */
  46.   char  Account_name[32];           /* Account name                         */
  47.   byte  length_owner;               /* length of owner                      */
  48.   char  Owner[31];                  /* Owner                                */
  49.   byte  length_device;              /* length of device                     */
  50.   char  Device[31];                 /* Device (default disk device)         */
  51.   byte  length_default;             /* length of default (SYS$LOGIN)        */
  52.   char  Default[63];                /* Default (SYS$LOGIN) directory        */
  53.   byte  length_command;             /* length of default login command      */
  54.   char  Default_command[63];        /* Default login command file           */
  55.   byte  length_CLI;                 /* length of default CLI                */
  56.   char  Default_CLI[31];            /* Default CLI                          */
  57.   byte  length_CLI_tables;          /* length of user defined CLI tables    */
  58.   char  User_CLI_table[31];         /* User defined CLI table name          */
  59.   byte  Passwd1[8];                 /* Encrypted primary password           */
  60.   byte  Passwd2[8];                 /* Encrypted secondary password         */
  61.   word  Number_login_fails;         /* Number of login fails                */
  62.   word  Passwd_salt;                /* Password encryption salt             */
  63.   byte  Encr_algo1;                 /* Encryption algorithm code - pass1    */
  64.   byte  Encr_algo2;                 /* Encryption algorithm code - pass2    */
  65.   byte  Pass_minimum_length;        /* Password minimum length              */
  66.   byte  Filler1;                    /* Filler                               */
  67.   byte  Account_ex_date[8];         /* Account expiration date              */
  68.   byte  Password_lifetime[8];       /* Password lifetime                    */
  69.   byte  Pass1_change_date[8];       /* Primary password change date/time    */
  70.   byte  Pass2_change_date[8];       /* Secondary password change date/time  */
  71.   byte  Last_interactive[8];        /* Last interactive login date/time     */
  72.   byte  Last_non_interactive[8];    /* Last non-interactive login date/time */
  73.   byte  Authorize_priviledges[8];   /* Authorize priviledges                */
  74.   byte  Default_priviledges[8];     /* Default priviledges                  */
  75.   byte  Filler2[40];                /* Filler                               */
  76.   byte  Login_Flags_0;              /* Login Flags bits byte 0              */
  77.   byte  Login_Flags_1;              /* Login Flags bits byte 1              */
  78.   byte  Login_Flags_2;              /* Login Flags bits byte 2              */
  79.   byte  Login_Flags_3;              /* Login Flags bits byte 3              */
  80.   byte  Network_primary_days[3];    /* Network access bytes - primary days  */
  81.   byte  Network_seconday_days[3];   /* Network access bytes - seconday days */
  82.   byte  Batch_primary_days[3];      /* Batch access bytes - primary days    */
  83.   byte  Batch_seconday_days[3];     /* Batch access bytes - seconday days   */
  84.   byte  Local_primary_days[3];      /* Local access bytes - primary days    */
  85.   byte  Local_seconday_days[3];     /* Local access bytes - seconday days   */
  86.   byte  Dialup_primary_days[3];     /* Dialup access bytes - primary days   */
  87.   byte  Dialup_secondary_days[3];   /* Dialup access bytes - secondary days */
  88.   byte  Remote_primary_days[3];     /* Remote access bytes - primary days   */
  89.   byte  Remote_seconday_days[3];    /* Remote access bytes - seconday days  */
  90.   byte  Filler3[12];                /* Filler                               */
  91.   byte  Prime_days;                 /* Prime days                           */
  92.   byte  Filler4;                    /* Filler                               */
  93.   byte  Default_base_priority;      /* Default base priority                */
  94.   byte  Maximum_job_queue_priority; /* Maximum job queue priority           */
  95.   word  Active_process_limit;       /* Active process limit                 */
  96.   word  Max_number_jobs;            /* Max. number of interactive jobs      */
  97.   word  Detached_process_limit;     /* Detached process limit               */
  98.   word  Subprocess_creation_limit;  /* Subprocess creation limit            */
  99.   word  Buffered_IO_count;          /* Buffered I/O count                   */
  100.   word  Timer_queue_entry_limit;    /* Timer queue entry limit              */
  101.   word  AST_queue_limit;            /* AST queue limit                      */
  102.   word  Lock_queue_limit;           /* Lock queue limit                     */
  103.   word  Open_file_limit;            /* Open file limit                      */
  104.   word  unknown1;
  105.   word  Shared_file_limit;          /* Shared file limit                    */
  106.   dword Working_set_quota;          /* Working set quota                    */
  107.   dword unknown2;
  108.   dword Working_set_extent;         /* Working set extent                   */
  109.   dword Paging_file_quota;          /* Paging file quota                    */
  110.   dword Maximum_CPU_time_limit;     /* Maximum CPU time limit (in 10-msec)  */
  111.   dword Buffered_IO_byte_limit;     /* Buffered I/O byte limit              */
  112.   dword Paged_buffer_IO_count_limit;/* Paged buffer I/O byte count limit    */
  113.   dword Initial_byte_quota;         /* Initial byte quota                   */
  114.   byte  Filler5[72];                /* Filler                               */
  115.  
  116. } UAF;
  117.